local pScoreBoard
function GM:ScoreboardShow()
	gui.EnableScreenClicker(true)
	LocalPlayer():EmitSound("buttons/lightswitch2.wav", 100, 30)

	if not pScoreBoard then
		pScoreBoard = vgui.Create("DScoreBoard")
		pScoreBoard:SetSize(math.min(640, ScrW() - 16), (ScrH() * 0.95) - 16)
		pScoreBoard:Center()
	end

	pScoreBoard:SetAlpha(0)
	pScoreBoard:AlphaTo(255, 0.5, 0)
	pScoreBoard:SetVisible(true)
	pScoreBoard:Refresh()
end

function GM:ScoreboardHide()
	gui.EnableScreenClicker(false)

	if pScoreBoard then
		LocalPlayer():EmitSound("buttons/lightswitch2.wav", 100, 20)
		pScoreBoard:SetVisible(false)
	end
end

